define(function (require, exports, module) {




    var jsTpl = "12345";

    var cssTpl = require("config/Student.json");
    alert(cssTpl);


    var VueComponent = new Vue({
        el: '#app',
        data: {
            jsTpl: jsTpl,
            cssTpl: cssTpl
        },
        mounted: function () {
            setTimeout(function () {

                var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
                    mode: "text/javascript",
                    height: 800,
                    extraKeys: { "Ctrl-Space": "autocomplete" },
                    autoCloseTags: true,
                    lineNumbers: true,
                    styleActiveLine: true,
                    theme: 'monokai',
                    value: this.cssTpl
                });

                editor.setOption('value', this.cssTpl);



                // editor = CodeMirror(document.getElementById("code"), {
                //     mode: "text/html",
                //     extraKeys: { "Ctrl-Space": "autocomplete" },
                //     value: document.documentElement.innerHTML
                // });
            }, 0);

        }
    });

});

